package cn.lookup.mapper;

import cn.lookup.domain.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {
    @Select("select * from account_role ar,account a,role r where ar.userId = a.id and ar.roleId = r.id and a.id = #{uid}")
    public abstract List<Role> queryRolesByUid(int uid);
}
